package com.xinqi.modules.sys.log.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.SuperEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 操作日志记录实体层
 *
 * @author: yyzhen
 * @date: 2023/08/23
 */
@Setter
@Getter
@TableName("sys_operator_log")
public class OperatorLogEntity extends SuperEntity {
    /**
     * 模块标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * 业务类型
     */
    @TableField(value = "business_type")
    private String businessType;
    /**
     * 方法名称
     */
    @TableField(value = "method")
    private String method;
    /**
     * 请求方式
     */
    @TableField(value = "request_method")
    private String requestMethod;
    /**
     * 操作类别
     */
    @TableField(value = "operator_type")
    private String operatorType;
    /**
     * 操作人员
     */
    @TableField(value = "operator_id")
    private Long operatorId;
    /**
     * 请求URL
     */
    @TableField(value = "operator_url")
    private String operatorUrl;
    /**
     * 主机地址
     */
    @TableField(value = "operator_ip")
    private String operatorIp;
    /**
     * 操作地点
     */
    @TableField(value = "operator_location")
    private String operatorLocation;
    /**
     * 请求参数
     */
    @TableField(value = "operator_param")
    private String operatorParam;
    /**
     * 返回参数
     */
    @TableField(value = "json_result")
    private String jsonResult;
    /**
     * 操作状态
     */
    @TableField(value = "status")
    private String status;
    /**
     * 错误消息
     */
    @TableField(value = "error_msg")
    private String errorMsg;
    /**
     * 操作时间
     */
    @TableField(value = "operator_time")
    private LocalDateTime operatorTime;
}
